package com.wxm.common.file.core.property;

import com.wxm.common.file.core.enm.FileSupplierEnum;
import com.wxm.common.file.core.service.supplier.SupplierBaseService;
import lombok.Data;

/**
 * <p>
 *      上传配置基类
 * </p>
 *
 * @author: wxm
 * @Date: 2022/1/17
 */
@Data
public abstract class UploadBaseProperty {
    /**
     * 根访问地址
     */
    private String rootPath;

    /**
     * 获取供应商类型
     * @return FileSupplierEnum
     */
    public abstract FileSupplierEnum fileSupplierEnum();

    /**
     * 获取供应商的实现
     * @return Class<? extends SupplierBaseService>
     */
    public abstract Class<? extends SupplierBaseService> supplierService();
}
